package data
{
	import flash.system.Capabilities;
	
	/** contains constants used in the application. **/
	public class CONST
	{
		
		// database-related data:
		// public static const GATEWAY_LOC:String = "http://localhost/amfphp/gateway.php";
		public static const GATEWAY_LOC:String = "http://gorss.fhf-online.de/gorss/amfphp/gateway.php";
		public static var CAT_OBJECT:Array;							// will contain the array with cats
		[Bindable] public static var CURRENT_FEED_URL:String;			// dynamic url of selected feed
		
		
		
		
		// var checking if add-new-feed-window is to be displayed:
		[Bindable] public static var NEW_FEED_WIN_ACTIVE:Boolean = false;

		
		// look and feel data
		[Bindable] public static var ROWHEIGHT_MENUITEM:int = 20;
		
		// screen resolution:
		public static const scrWidth:Number = Capabilities.screenResolutionX;
		public static const scrHeight:Number = Capabilities.screenResolutionY;
		
		[Bindable] public static var stHeight:Number;
		[Bindable] public static var stWidth:Number;
		
		
		[Bindable] public static var appWidth:Number = 1080;		// total app width
		[Bindable] public static var WIDTH_APP_LEFT:int = 200;
	
		// elements visibility settings:
		[Bindable] public static var VIS_LOGIN:Boolean = true;		// login bar
		[Bindable] public static var VIS_USER:Boolean = false;		// user details
		
		// all user-login related data:
		public static var UNAME:String;								// refers to the username
		public static var UPASS:String;								// giving password (will be encrypted later!)
		[Bindable] public static var IS_LOGGED_IN:Boolean;
		
		
		// text messages and related strings:
		public static const FEEDS_NONE_SELECTED:String = "No Category";
		public static const FEED_ADD_NEW_ITEM_SUCCESS:String = "Item added successfully.";
		public static const FEED_ADD_NEW_ITEM_ERROR:String = "Problem encountered while adding new feed item to Database.";
		public static const USER_ADD_NEW_ITEM_SUCCESS:String = "Registration completed successfully.";
		public static const USER_ADD_NEW_ITEM_ERROR:String = "Registration failed.";
		public static const LOGIN_SUCCESS:String = "Logged in successfully.";
		public static const LOGIN_ERROR:String = "Login failed. Correct name and password?";
		
		
		// colors:
		public static const BG_APPLICATION:uint = 0x666666;
		public static const BG_APPLICATION_ELEMENTS:uint = 0xEEEEEE;
		public static const BG_HEADER_BLUE:uint = 0xCDDDFF;
		public static const BG_HEADER_LIGHT:uint = 0xEEEEEE;
		public static const BG_TEXT_ITEM:uint = 0xEEEEEE;
		public static const BG_ALT_TEXT_ITEM:Array = [0xEEEEEE, 0xEEEEEE];
		
		
		
		// sizing of elements:
		public static const APP_HEADER_HEIGHT:int = 80;
		public static const ACC_HEADER_HEIGHT:int = 28;
		public static const ACC_HEADER_HEIGHT_SMALL:int = 18;
		
		public function CONST()
		{
		}

	}
}